<?php

include 'connection.php';
	
	if (!$_COOKIE["counter"]=="1") {
		mysql_query("UPDATE counter SET count=count+1 WHERE id=1");
	}
	$query="SELECT count FROM counter WHERE id=1";
	$result=mysql_query($query);
	$r =mysql_fetch_assoc($result);
	$co=$r['count'];


	echo "Anzahl der Besuche: ".$co;
	mysql_close();

?>